From 39fcc064b1dee4c80999fd54666fbbb716301391 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Tue, 22 Jun 2010 07:19:38 +0100 Subject: [PATCH] perfc: Fix x86_64 build with perfc_arrays=y Signed-off-by: Keir Fraser --- xen/include/asm-x86/x86_64/asm_defns.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xen/include/asm-x86/x86_64/asm_defns.h b/xen/include/asm-x86/x86_64/asm_defns.h index df1343f607..7a8cfdbb6a 100644 --- a/xen/include/asm-x86/x86_64/asm_defns.h +++ b/xen/include/asm-x86/x86_64/asm_defns.h @@ -67,8 +67,9 @@ pushq _cur; \ movslq VCPU_processor(_cur),_cur; \ pushq %rdx; \ + leaq __per_cpu_offset(%rip),%rdx; \ + movq (%rdx,_cur,8),_cur; \ leaq per_cpu__perfcounters(%rip),%rdx; \ - movq __per_cpu_offset(,_cur,8),_cur; \ addq %rdx,_cur; \ popq %rdx; \ incl _name*4(_cur,_idx,4); \ -- 2.30.2